package cn.wolfcode.trip.base.domain;

import cn.wolfcode.trip.base.util.JSONUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.*;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Setter
@Getter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties("handler")
public class Sign extends BaseDomain{

    private Long user_id;//用户Id


    //private Date signtime;//签到时间

    private Integer days; //签到天数

    private Integer integral; //积分


    private List<UserSign> signtimes; //签到的全部日期


   /* public String getJson(){
        Map<String, Object> map = new HashMap<>();
        map.put("id", id);
        map.put("user_id",user_id);
        map.put("days", days);
        map.put("integral", integral);
        return JSONUtil.toJSONString(map);
    }*/


}